package com.zf.yichat.model;

import java.io.Serializable;
import javax.persistence.*;

@Table(name = "ipv6_to_region")
public class IPV6ToRegion implements Serializable {
    @Id
    private Integer id;

    private String ip;

    private String country;

    private String province;

    private String city;

    private String isp;

    private static final long serialVersionUID = 1L;

    public IPV6ToRegion(Integer id, String ip, String country, String province, String city, String isp) {
        this.id = id;
        this.ip = ip;
        this.country = country;
        this.province = province;
        this.city = city;
        this.isp = isp;
    }

    public IPV6ToRegion() {
        super();
    }

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return ip
     */
    public String getIp() {
        return ip;
    }

    /**
     * @param ip
     */
    public void setIp(String ip) {
        this.ip = ip == null ? null : ip.trim();
    }

    /**
     * @return country
     */
    public String getCountry() {
        return country;
    }

    /**
     * @param country
     */
    public void setCountry(String country) {
        this.country = country == null ? null : country.trim();
    }

    /**
     * @return province
     */
    public String getProvince() {
        return province;
    }

    /**
     * @param province
     */
    public void setProvince(String province) {
        this.province = province == null ? null : province.trim();
    }

    /**
     * @return city
     */
    public String getCity() {
        return city;
    }

    /**
     * @param city
     */
    public void setCity(String city) {
        this.city = city == null ? null : city.trim();
    }

    /**
     * @return isp
     */
    public String getIsp() {
        return isp;
    }

    /**
     * @param isp
     */
    public void setIsp(String isp) {
        this.isp = isp == null ? null : isp.trim();
    }
}